package com.example.hdwx.myapplication.base_activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.hdwx.myapplication.R;

public class Register_Activity extends AppCompatActivity {

    ImageView off,on;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        off = (ImageView) findViewById(R.id.register_off);
        on = (ImageView) findViewById(R.id.register_on);

        init();
    }

    private void init() {
        off.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                on.setVisibility(View.VISIBLE);
            }
        });

        on.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                on.setVisibility(View.GONE);
            }
        });
    }

    public void revert(View view) {
        finish();
    }

    public void verification(View view) {
        //// TODO: 17-2-18 通过手机号获取验证码监听事件 
    }

    public void agreement(View view) {
        //// TODO: 17-2-18 跳转到协议界面
    }
}
